package com.itheima.test;

import java.io.*;

/**
 * @author Zhang_Han
 * @version 1.0
 * @date 2020/7/15 15:12
 */
public class Demo_001 {
    public static void main(String[] args) throws IOException {
        FileReader fr = new FileReader("C:\\Users\\97622\\Desktop\\ROBIN\\day19.md");
        FileWriter fw = new FileWriter("C:\\Users\\97622\\Desktop\\123.md");
        char[] chars = new char[1024 * 8];
        int len;
        while ((len = fr.read(chars)) != -1) {
            fw.write(chars, 0, len);
            fw.flush();
        }
        fr.close();
        fw.close();
    }
}
